home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / os2 / tbox3_00.zip / install.cmd < prev    next >
OS/2 REXX Batch file  |  1996-07-12  |  1KB  |  30 lines

  1. /*  K.A.Ash (c) Copyright 1996                                          */
  2. /*  install.cmd                                                         */
  3. /*  -----------                                                         */
  4. /*      A very simple installation script.                              */
  5.  
  6. options etmode
  7. options exmode
  8. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  9. call SysLoadFuncs
  10.  
  11. programName = SysSearchPath('PATH', 'TaskBox.exe')
  12. if programName = '' then
  13. do
  14.    say 'Error: Cannot find TaskBox.exe in PATH directories.'
  15.    exit
  16. end
  17.  
  18. if stream('TaskBox.dll', 'command', 'query exists') = '' then
  19. do
  20.    say 'Error: Cannot find TaskBox.dll in the current directory.'
  21.    exit
  22. end
  23.  
  24. if SysCreateObject('WPProgram', 'TaskBox', '<WP_DESKTOP>', 'EXENAME='programName';STARTUPDIR='directory()';PROGTYPE=PM;OBJECTID=<TaskBox>;PARAMETERS=%', 'u') = 0 then
  25.    say 'Error: Cannot create object.'
  26. else
  27.    say 'The program object was successfully created on the desktop.'
  28.  
  29. exit
  30.